
import 'package:flutter/material.dart';
import 'package:simple_pwd_node/entity/record.dart';
import 'package:simple_pwd_node/util/db_utils.dart';
import 'package:simple_pwd_node/util/my_log.dart';

class RecordModel with ChangeNotifier{

  List<Record> recordList = [];

  update()async{
    var db = await DbUtils.getInstance().openDb("db1");
    recordList.clear();
    var list = await db.queryItems(new Record());
    recordList.addAll(list);
    notifyListeners();
  }

}